

<div class="card">
  <div class="card-header">{{title}}</div>
  <div class="card-body">
    <form (submit)="login()">
      <div class="form-group">
        <label for="exampleInputEmail1">用户名</label>
        <input type="text" name="user" [(ngModel)]="data.user" class="form-control">
      </div>
      <div class="form-group">
        <label for="exampleInputEmail1">密码</label>
        <input type="password" name="password" [(ngModel)]="data.password" class="form-control">
      </div>
      <div class="form-check">
        <input type="checkbox" name="isRememberPwd" [(ngModel)]="data.isRememberPwd" class="form-check-input">
        <label class="form-check-label" for="exampleCheck1">记住密码</label>
      </div>
      <button type="submit" class="btn btn-primary">登录</button>
    </form>
  </div>
</div>